package com.jmz.apt.api.dao;

import com.jmz.apt.api.dto.impl.AdminResourceDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description : {   }
 * @Author : create by NanFeng on 2019-11-06 12:26
 */
@Mapper
public interface MenuDao {

    @Select("SELECT t.id as id ,t.parent_id as  parentId, t.resource_name as resourceName ,t.url as url " +
            "FROM jmz_admin_resource t where t.is_show = '1' and t.status = '1' ORDER BY t.sort; ")
    List<AdminResourceDto> getList();
}
